
package upc.pilot.dao.Mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import upc.pilot.model.Club;

public class ClubMapper implements RowMapper<Club>
{

    @Override
    public Club mapRow(ResultSet rs, int arg1) throws SQLException
    {
        Club club = new Club();
        club.setCodigo(rs.getInt("codigo"));
        club.setNombre(rs.getString("nombre"));
        club.setCapacidad(rs.getString("capacidad"));
        return club;
    }

}
